package www.rlicker.service.impl;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import www.rlicker.dao.IParameDao;
import www.rlicker.model.Parame;
import www.rlicker.mybatis.Criteria;
import www.rlicker.service.IParameService;
import www.rlicker.utils.MessageConstant;

@Service
public class ParameServiceImpl implements IParameService{

	@Override
	public Parame queryEntity() {
		return parameDao.queryEntity();
	}

	@Override
	public String update(Criteria<Parame> param) {
		int result = parameDao.update(param);
		if ( result != 1) { 
				return MessageConstant.USER_TYPE_5;
		}
		return null;
	}
	
	@Resource
	private IParameDao parameDao;

}
